/**
 * @Description
 */

public class MySingleList {

    public class List {
        public List next;
        public int val;

        public List(int val) {
            this.val = val;
        }
    }

    public List head;

    List Node1 = new List(1);
    List Node2 = new List(2);
    List Node3 = new List(3);
    List Node4 = new List(4);

    public void crateList() {
        Node1.next = Node2;
        Node2.next = Node3;
        Node3.next = Node4;

        this.head = Node1;
    }
}